import request from "@/utils/request";

// 获取路由
export const getRouters = () => {
  return request({
    url: "/getRouters",
    method: "get",
  });
};

// 获取首页统计类型
export const homePageStatis = () => {
  return request({
    url: "/admin/homePageStatis/type",
    method: "get",
  });
};

// 获取首页统计图
export const statistics = (params) => {
  return request({
    url: "/admin/homePageStatis/statistics",
    method: "get",
    params,
  });
};

// 获取首页数量统计
export const count = () => {
  return request({
    url: "/admin/homePageStatis/statistics/count",
    method: "get",
  });
};
